
<?php
global $cars;
global $t_cars;
$num_usua=4;
for($num=0;$num<=$num_usua;$num++){
		
		
	$cars[]=$num;
	
	
	
}


for($num=0;$num<=$num_usua;$num++){
		

	if($num<=0){
			
		for($num=0;$num<=$num_usua;$num++){
			echo "$cars[$num]";
		}
	
	}else{	
		
		$ulti=$cars[$num_usua];
		$penulti=$cars[-$num_usua];
		
		$cars[0]=$ulti;
		$cars[$num_usua]=$penulti;
		
		for($num=1;$num<=$num_usua;$num++){
			echo "$cars[$num]";
		}
		
		
	}
	
		
}

for($num=0;$num<=$num_usua;$num++){
		
		
	echo $t_cars[$num];
	
	
	
}



?> 